package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.SysRole;
import com.yugao.fintech.draper.admin.param.RoleVO;
import com.yugao.fintech.draper.admin.param.RoleDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RoleConvert {

	RoleConvert INSTANCE = Mappers.getMapper(RoleConvert.class);

	SysRole convert(RoleDTO roleDTO);

	RoleDTO convert(SysRole sysRole);

	RoleDTO convert(RoleVO roleVO);

	List<RoleDTO> convert(List<SysRole> sysRole);

	Page<RoleDTO> convert(Page<SysRole> roleDO);

}
